﻿using System;
using static CyberU;
using static CyberU.UI;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.Events;

public class AddChild : NodeOperation
{

    public void Awake()
    {
        base.Awake();
        clicker.AddLeft(() =>
        {
            // Delog(node.graph == null);
            GraphNode _ = node.graph.AddNode(parentNode : node);
            node.graph.AddEdge(from:node,to:_);
            // Delog(1);
        });
    }
}